package com.lo.entity;

import com.lo.enums.EnumVip;
import lombok.Data;

@Data
public class CourseWithTCHName {
    private Long id;
    private String name;
    private String url;
    private String type;
    private EnumVip vip;
    private String TCHName;
    private String textualType;
    private String label;
    private String coverUrl;
    private String intro;
    private Long tid;


    public CourseWithTCHName() {
    }
    public CourseWithTCHName(Course c,String _TCHName){
        id=c.getId();
        name=c.getName();
        url=c.getUrl();
        type=c.getType();
        vip=c.getVip();
        TCHName=_TCHName;
        label=c.getLabel();
        coverUrl=c.getCoverUrl();
        intro=c.getIntro();
        tid=c.getTid();

        textualType=null;
    }
    public CourseWithTCHName(TextualMaterial t,String _TCHName){
        id=t.getId();
        name=t.getName();
        url=t.getUrl();
        type=t.getType();
        vip=t.getVip();
        TCHName=_TCHName;
        label=t.getLabel();
        coverUrl=t.getCoverUrl();
        intro=t.getIntro();
        tid=t.getTid();

        textualType=t.getTextualType();
    }
}
